//
//  RQCollectionViewCell.m
//  RQDropDownMenuDemo
//
//  Created by 蜂巢网络科技 on 2017/6/26.
//  Copyright © 2017年 fengchao. All rights reserved.
//

#import "RQDropCollectionViewCell.h"
#import "RQDropDownMenuConfig.h"

@implementation RQDropCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        _textLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        _textLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_textLabel];
        
        self.backgroundColor = [UIColor whiteColor];
        self.textLabel.font = [UIFont systemFontOfSize:14.0];
        
        self.layer.cornerRadius = 4;
        self.layer.borderColor = LineColorDDDDDD.CGColor;
        self.layer.borderWidth = 0.5f;
        self.clipsToBounds = YES;

    }
    return self;
}

- (void)setIsSelected:(BOOL)isSelected
{
    _isSelected = isSelected;
    
    self.textLabel.textColor = _isSelected ? [UIColor whiteColor] : kTextColor;
    self.textLabel.backgroundColor =_isSelected ? FontColor03BBB2 : [UIColor whiteColor];
    
}


@end
